package com.qiangqiang.exception;

import com.qiangqiang.enums.RecordEnums;
import lombok.Getter;

/**
 * Created by q on 2018/2/11.
 */
@Getter
public class RecordException extends RuntimeException {
    private Integer code;

    public RecordException(RecordEnums recordEnums) {
        super(recordEnums.getMessage());
        this.code = recordEnums.getCode();
    }
}
